<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量    
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。    
	pageContext.setAttribute("basePath", basePath);
%>
<!DOCTYPE html>
<html>
<head>
    <title>后台管理系统</title>
	<meta charset="UTF-8">
   <link rel="stylesheet" type="text/css" href="<%= basePath%>style/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="<%= basePath%>style/css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="<%= basePath%>style/css/style.css" />
    <script type="text/javascript" src="<%= basePath%>style/js/jquery.js"></script>
    <script type="text/javascript" src="<%= basePath%>style/js/jquery.sorted.js"></script>
    <script type="text/javascript" src="<%= basePath%>style/js/bootstrap.js"></script>
    <script type="text/javascript" src="<%= basePath%>style/js/ckform.js"></script>
    <script type="text/javascript" src="<%= basePath%>style/js/common.js"></script>
    <style type="text/css">
        body {
            padding-top: 200px;
            padding-bottom: 40px;
            background-color: #f5f5f5;
        }

        .form-signin {
            max-width: 300px;
            padding: 19px 29px 29px;
            margin: 0 auto 20px;
            background-color: #fff;
            border: 1px solid #e5e5e5;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            border-radius: 5px;
            -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
            -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
            box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
        }

        .form-signin .form-signin-heading,
        .form-signin .checkbox {
            margin-bottom: 10px;
        }

        .form-signin input[type="text"],
        .form-signin input[type="password"] {
            font-size: 16px;
            height: auto;
            margin-bottom: 15px;
            padding: 7px 9px;
        }

    </style>  
</head>
<body>
<div class="container">
<h2 align="center" class="form-signin-heading">登录系统</h2>
    <form class="form-signin" method="post" action="<%=path%>/rest/login">
        <h4 align="center"  class="form-signin-heading"><font color="blue">欢迎登录SIAS小区物业管理系统</font></h4>
        <h4 align="center"  class="form-signin-heading"><font color="red">${failedInfo}</font></h4>
        <input type="text" name="uUname" class="input-block-level" placeholder="用户名">
        <input type="password" name="uPassword" class="input-block-level" placeholder="密码">
        <div><button    class="btn btn-large btn-primary" type="submit" >登录</button>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="<%=path%>/rest/addUserJsp"  >注册新用户</a></div>

    </form>

</div>
</body>
</html>